Haptic Output
A vibration motor.
import { VibrationMotor } from "@devicescript/core"
const vibrationMotor = new VibrationMotor()
Commands
vibrate
Starts a sequence of vibration and pauses. To stop any existing vibration, send an empty payload.
vibrationMotor.vibrate(duration:number, intensity:number):Promise<void>
Registers
maxVibrations
The maximum number of vibration sequences supported in a single packet.
- read only
import { VibrationMotor } from "@devicescript/core"
const vibrationMotor = new VibrationMotor()
const value = await vibrationMotor.maxVibrations.read()